import tkinter as tk


class ButtonController:
    def __init__(self, root, start_callback, stop_callback, generate_report_callback):
        self.root = root
        self.start_button = tk.Button(
            self.root, text="开始检测", command=start_callback
        )
        self.start_button.pack(side=tk.LEFT)
        self.stop_button = tk.Button(self.root, text="停止检测", command=stop_callback)
        self.stop_button.pack(side=tk.LEFT)
        self.report_button = tk.Button(
            self.root, text="生成报告", command=generate_report_callback
        )
        self.report_button.pack(side=tk.LEFT)
